echo_on
echo ls1g+ flash program demo
#maybe need set flash width and speed
waitreg 1 0x5a5a5a5a
waitfacc
#m4 0xbfe78030 0x8800
m4 0xbfe78030 0x8888
ddr2_config ./ddr2.txt
memtest 0xa0000000 0xa0000100
put gzrom.bin 0xa1000000
#put gzrom.bin.ok 0xa1000000
#setconfig flash.type st25vf080
setconfig flash.type st25p64
erase_area 0 0x7ffff 0x10000
setconfig helpaddr 0xa5000000
program 0xa1000000 0 0x60000
q
